﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Xiaov.SmartWeb.Application.TZGC
{
    public partial class JHDYData : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string table = "";
                if (Request.QueryString["table"] != null && Request.QueryString["table"].ToString() != "")
                {
                    table = Request.QueryString["table"].ToString();
                }
                string sql = "select * from " + table;
                string dataString = "";
                if (table == "yt_jhdy")
                {
                    dataString = "zjyb_jh,gcid";
                }
                if (table == "yt_gcbieming")
                {
                    dataString = "gcbieming,gcid";
                }
                DataSet ds = Maticsoft.DBUtility.DbHelperOra.Query(sql);
                Xiaov.SmartWeb.Application.SupCan.ConvertToXml.Convert(ds.Tables[0], dataString, 0, ds.Tables[0].Rows.Count);
            }
        }
    }
}